var exec = require('cordova/exec');

// exports.coolMethod = function(arg0, success, error) {
//     exec(success, error, "GlobalVars", "coolMethod", [arg0]);
// };

var fcn = function() {};

fcn.prototype.set = function(value, success, error) {
    exec(success, error, "GlobalVars", "set", [value]);
};

fcn.prototype.get = function(success, error) {
    exec(success, error, "GlobalVars", "get", []);
};

fcn.prototype.toast = function(value, success, error) {
    exec(success, error, "GlobalVars", "toast", [value]);
};


var fc = new fcn();
module.exports = fc;